<?php require 'header.php';?>
  <div class="mainDiv">
    <div class="innerMain">
      <div class="innerTab"> <span class="announceT">新闻公告</span> </div>
      <div class="bugSubList">
        <table class="announceTab">
            <thead>
                <tr><td width="80%">标题</td><td width="20%">时间</td></tr>
            </thead>
            <tbody>
            	<?php
				if($_tpl['rs']){
					$str = "";
					foreach($_tpl['rs'] as $v){
						$ymd = date("Y-m-d",$v['create_time']);
						$url = Qtpl::createUrl('news', 'view',array('aid'=>Qutil::enId($v['aid'])));
						$str .= "<tr><td width=\"80%\"><a href=\"{$url}\">{$v['title']}</a></td><td width=\"20%\">{$ymd}</td></tr>";
					}
					echo $str;
				}
				?>
            </tbody>                    
        </table>
      </div>
    </div>
  </div>
<?php require 'footer.php';?>